<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 300px;
            height: 200px;
            background-color: blueviolet;
            /* overflow: hidden;
            overflow: scroll; */
            /* overflow-y: scroll; */
            overflow: auto;
        }
    </style>
</head>
<body>
    <div>
        Lorem ipsum dolor Lorem ipsum dolor sit, amet consectetur adipisicing elit. Debitis rem voluptates porro eveniet. Id, nam dolore officiis tenetur sed doloribus dolor delectus et quos cum provident voluptas numquam exercitationem qui! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste quis neque exercitationem ducimus dolore molestias eligendi nihil, a nulla, tenetur ab nesciunt architecto qui doloremque? Et debitis eveniet ullam! Consequatur?
    </div>
</body>
</html>